package org.flower.service.impl;

import org.flower.bean.Collect;
import org.flower.dao.CollectDao;
import org.flower.dao.impl.CollectDaoImpl;
import org.flower.service.CollectSrevice;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

public class CollectServiceImpl implements CollectSrevice {
    @Override
    public List<Collect> getAll(int id) {
        CollectDao collectDao = new CollectDaoImpl();
        return collectDao.getAll(id);
    }

    @Override
    public boolean UpdateCollect(int userid, int collectId) {
        CollectDao collectDao = new CollectDaoImpl();
        return collectDao.UpdateCollect(userid,collectId);
    }
}
